package gui;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.Font;
import javax.swing.LayoutStyle.ComponentPlacement;

public class SeatSelectFail {

	private JFrame frmError;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					SeatSelectFail window = new SeatSelectFail();
					window.frmError.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public SeatSelectFail() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmError = new JFrame();
		frmError.setTitle("Error");
		frmError.setBounds(100, 100, 300, 170);
		frmError.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JLabel ErrorMessage = new JLabel("Please select a GREEN seat!");
		ErrorMessage.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		
		JButton OkayButton = new JButton("Okay.");
		OkayButton.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		GroupLayout groupLayout = new GroupLayout(frmError.getContentPane());
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(47)
							.addComponent(ErrorMessage))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(110)
							.addComponent(OkayButton)))
					.addContainerGap(47, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(34)
					.addComponent(ErrorMessage)
					.addGap(30)
					.addComponent(OkayButton)
					.addContainerGap(33, Short.MAX_VALUE))
		);
		frmError.getContentPane().setLayout(groupLayout);
	}
}
